Skip to content

design-proposal: cozymarketplace — community marketplace of External-Apps repositories#18

Open
Andrei Kvapil (kvaps) wants to merge 2 commits into
mainfrom
proposal/cozymarketplace
Open

design-proposal: cozymarketplace — community marketplace of External-Apps repositories#18
Andrei Kvapil (kvaps) wants to merge 2 commits into
mainfrom
proposal/cozymarketplace

Conversation

@kvaps

Copy link
Copy Markdown
Member

Adds a design proposal for cozymarketplace — a community marketplace for Cozystack External Apps.

What

A single meta-repository (an index, krew-index style) of External-Apps repositories. Anyone — Aenix or third parties — lists a repository in the index; an operator browses it, taps a repository onto their cluster with cozypkg, then installs the apps it offers. The installable, versioned unit is the repository — an OCI artifact bundling all its apps and carrying a version/tag — not the individual package.

Why

There is no shared, browsable place to discover External-Apps repositories or connect one. Cozystack's value is a tested set of components known to work together; a thematic repository is the natural carrier of that guarantee. Model: Ubuntu PPA (a marketplace of repositories), not AUR (individual packages).

Scope

Phase 1, deliberately thin, built on the existing External-Apps mechanism (PackageSource + OCI + Flux) and cozypkg. Repository-level versioning is in scope (OCI tag); per-package version pinning is out of scope.

A separate, competing proposal (by Ivan Okhotnikov) approaches the same problem from a package-centric / brew-taps angle; the two are intended to be compared.

Rendered: design-proposals/cozymarketplace/README.md

…Apps repositories

Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kvaps, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 58 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e3965a7d-da26-4141-ae42-61e57ad6a4ed

📥 Commits

Reviewing files that changed from the base of the PR and between abb40d0 and 0c55add.

📒 Files selected for processing (1)
  • design-proposals/cozymarketplace/README.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch proposal/cozymarketplace

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a design proposal for Cozymarketplace, a community marketplace of External-Apps repositories for Cozystack. The feedback suggests grouping the 'tap' command under the 'repo' subcommand for CLI consistency, and addresses a potential edge case regarding how to handle the uninstallation of orphaned packages when their source repository is disabled or removed.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +105 to +113
```text
# illustrative — verb names to be finalized against existing cozypkg UX
cozypkg repo list # list repositories from the meta-index
cozypkg repo update # refresh the index
cozypkg tap aenix-apps # connect a repository (latest tag) to this cluster
cozypkg tap aenix-apps@v1.5.0 # pin the repository to a specific OCI artifact version
cozypkg list # packages available from tapped repos
cozypkg add <package> # install a package
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For CLI consistency, repository-level commands should be grouped under the repo subcommand. Mixing cozypkg repo list with a top-level cozypkg tap command can make the CLI interface feel disjointed. Consider nesting the tap command under repo (e.g., cozypkg repo tap).

Suggested change
```text
# illustrative — verb names to be finalized against existing cozypkg UX
cozypkg repo list # list repositories from the meta-index
cozypkg repo update # refresh the index
cozypkg tap aenix-apps # connect a repository (latest tag) to this cluster
cozypkg tap aenix-apps@v1.5.0 # pin the repository to a specific OCI artifact version
cozypkg list # packages available from tapped repos
cozypkg add <package> # install a package
```
# illustrative — verb names to be finalized against existing cozypkg UX
cozypkg repo list # list repositories from the meta-index
cozypkg repo update # refresh the index
cozypkg repo tap aenix-apps # connect a repository (latest tag) to this cluster
cozypkg repo tap aenix-apps@v1.5.0 # pin the repository to a specific OCI artifact version
cozypkg list # packages available from tapped repos
cozypkg add <package> # install a package


- **Index entry points at an unreachable / invalid source →** tap fails; the resulting `PackageSource` / Flux source surfaces the error on its status, the same way a broken External App does today.
- **Repository chart fails to template or install →** Flux `HelmRelease` reports the failure; nothing different from a normal External App install failure.
- **Operator disables a repository that has installed packages →** the connected source is disabled; already-installed packages remain until explicitly removed (`cozypkg del`). (Inference; exact behavior to confirm.)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

If a repository is disabled or removed, the package definitions (and their underlying Helm charts) may no longer be accessible. This can prevent operators from cleanly uninstalling existing packages using cozypkg del or Flux, as the source manifests/charts are gone. Consider specifying how Cozystack will handle uninstallation of orphaned packages, or if disabling a repository should be blocked while it still has active package installations.

@kvaps
Andrei Kvapil (kvaps) marked this pull request as draft June 24, 2026 13:38
…tions and leaked Russian

Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>
IvanHunters added a commit to IvanHunters/community that referenced this pull request Jul 8, 2026
…s to cozymarketplace supplementary

Add two mermaid diagrams (backend/tap architecture and the
author/push/validate CI-gate flow) and scannable bold lead-ins on the
Goals section, matching the visual structure of the sibling proposals

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
cozystack#18 and cozystack#12.
@kvaps

Copy link
Copy Markdown
Member Author

Reviewed this together with its backend/private-source/validation supplement in #23 (full write-up posted there). This proposal is sound on its own terms — the repository-as-unit model, OCI-artifact versioning, and reuse of the existing PackageSource/Flux pipeline all hold up, and #23 cleanly fills the private-repo and publication-validation open questions listed here.

One coherence point that belongs on this PR rather than on #23: the relationship between this meta-index and #12's community index (cozystack/packages-index). #23 already treats them as a single artifact with a single entry schema, but this doc doesn't reference #12 at all, and the two describe the index differently (repository-of-repositories here vs. the metadata-only community index in #12). Since the publication CI gate proposed in #23 will be written against one concrete entry schema, it'd help to state explicitly here that these are one index, or to spell out how they relate. That seam between #12 / #18 / #23 is the main place where something could be lost between the proposals — everything inside each doc is internally consistent.

No blocking objection; the security and cross-tenant-visibility questions are captured in the #23 review.

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant